home *** CD-ROM | disk | FTP | other *** search
/ MacWorld UK 2005 May / MW_UK_2005_05.iso / 16 iCal utilities / quickCal.sit / quickCal / quickCal.app / Contents / Resources / CustomWindow.h < prev    next >
Encoding:
Text File  |  2005-01-24  |  708 b   |  29 lines

  1. /*
  2. File:        CustomWindow.h
  3.  
  4. Description:     This is the header file for the CustomWindow class, which is our subclass of NSWindow.  We need to subclass
  5.         NSWindow in order to configure the window properly in -initWithContentRect:styleMask:backing:defer:
  6.         to have a custom shape and be transparent.
  7.  
  8. Author:        MCF
  9.  
  10. Copyright:     © Copyright 2001 Apple Computer, Inc. All rights reserved.
  11.  
  12. Change History (most recent first):
  13.  
  14. 03/2001 - MCF - initial version
  15.  
  16. */
  17.  
  18.  
  19. #import <Cocoa/Cocoa.h>
  20.  
  21. @interface CustomWindow : NSWindow
  22. {
  23.     //This point is used in dragging to mark the initial click location
  24.     NSPoint initialLocation;
  25. }
  26. - (void)mouseDragged:(NSEvent *)theEvent;
  27. - (void)mouseDown:(NSEvent *)theEvent;
  28. @end
  29.